
import MenaryModel from "../model/MenaryModel";
import SceneManager from "../manager/SceneManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Button)
    callButton: cc.Button = null;
    @property(cc.Button)
    homeButton: cc.Button = null;
    @property(cc.Button)
    menaryButton: cc.Button = null;
    @property(cc.Button)
    pvpButton: cc.Button = null;
    @property(cc.Button)
    riskButton: cc.Button = null;
    @property(cc.Button)
    bossButton: cc.Button = null;
private clickCall(){
    SceneManager.instance.goto('CallScene');
}
private clickHome(){
    SceneManager.instance.goto('HomeScene');
}
private clickMenary(){
    MenaryModel.instance.onEnterMenary(function() {
        SceneManager.instance.goto('MenaryScene');
    })
}
private clickPvp(){
    SceneManager.instance.goto('PvpScene');
}
private clickRisk(){
    SceneManager.instance.goto('RiskScene');
}
private clickBoss(){
    SceneManager.instance.goto('BossScene');
}
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {

    }

    // update (dt) {}
}
